package com.hotleproject.mapper;

import com.hotleproject.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CommentMapper {
    void insertComment(Comment comment);
    int getCommentCount();
    List<Comment> selectHotleComment(String hotlename);
    int getUserCommentCount();
    List<Comment> selectUserComment(String username,int tempPageNo,int pageSize);

    void deleteComment(String username, String commentDate);
}
